package com.sky.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@ApiModel("分页查询返回数据模型")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PageVo<T> {
    @ApiModelProperty(name = "分页查询数据总数",required = true)
    private Long total;
    @ApiModelProperty(name = "分页查询当前页数据",required = true)
    private List<T> records;
}
